package com.itnature.testchip.business;

import java.util.Vector;

public class VDDDetail {
	
//	HashMap<String, String> details = new HashMap<String, String>();
	private Vector<String> vecKey = new Vector<String>();
	private Vector<String> vecValue = new Vector<String>();
	
	public boolean containKey(String key) {
		return vecKey.contains(key);
	}
	
	public void putDetail(String key,String value) {
//		details.put(key, value);
		if(!getVecKey().contains(key)) {
			this.getVecKey().add(key);
			this.getVecValue().add(value);
		}else {
			int idx = getVecKey().indexOf(key);
			getVecValue().set(idx, value);
		}
	}
	
	public String getDetail(String key) {
		int idx = getVecKey().indexOf(key);
		return getVecValue().get(idx);
		/*if(details.containsKey(key))
			return details.get(key);
		return "";*/
	}

	public void setVecKey(Vector<String> vecKey) {
		this.vecKey = vecKey;
	}

	public Vector<String> getVecKey() {
		return vecKey;
	}

	public void setVecValue(Vector<String> vecValue) {
		this.vecValue = vecValue;
	}

	public Vector<String> getVecValue() {
		return vecValue;
	}
	
	/*String iovdd_level  = "";
	String corevdd_level  = "";
	String vdd25_level  = "";
	String pllvdd_level  = "";
	String trigger_high  = "";
	String trigger_low  = "";
	String dmar0_vil_level  = "";
	String dmar0_vih_level  = "";
	
	public String getIovdd_level() {
		return iovdd_level;
	}
	public void setIovdd_level(String iovdd_level) {
		this.iovdd_level = iovdd_level;
	}
	public String getCorevdd_level() {
		return corevdd_level;
	}
	public void setCorevdd_level(String corevdd_level) {
		this.corevdd_level = corevdd_level;
	}
	public String getVdd25_level() {
		return vdd25_level;
	}
	public void setVdd25_level(String vdd25_level) {
		this.vdd25_level = vdd25_level;
	}
	public String getPllvdd_level() {
		return pllvdd_level;
	}
	public void setPllvdd_level(String pllvdd_level) {
		this.pllvdd_level = pllvdd_level;
	}
	public String getTrigger_high() {
		return trigger_high;
	}
	public void setTrigger_high(String trigger_high) {
		this.trigger_high = trigger_high;
	}
	public String getTrigger_low() {
		return trigger_low;
	}
	public void setTrigger_low(String trigger_low) {
		this.trigger_low = trigger_low;
	}
	public String getDmar0_vil_level() {
		return dmar0_vil_level;
	}
	public void setDmar0_vil_level(String dmar0_vil_level) {
		this.dmar0_vil_level = dmar0_vil_level;
	}
	public String getDmar0_vih_level() {
		return dmar0_vih_level;
	}
	public void setDmar0_vih_level(String dmar0_vih_level) {
		this.dmar0_vih_level = dmar0_vih_level;
	}
*/}
